package com.genericity.demo04;

public class Test {
    public static void main(String[] args) {
        System.out.println("泛型接口！");
        // 1.泛型接口实现类 不是泛型类
        Apple apple = new Apple();
        System.out.println(apple.getKey());

        // 2.泛型接口实现类是泛型类

        Pair<String,Integer> stringIntegerPair = new Pair<>("count",1000);
        Integer num = stringIntegerPair.getNum();
        String key = stringIntegerPair.getKey();
        System.out.println(key+" = "+num);

        System.out.println("===泛型方法的学习===");

    }
}
